﻿namespace MvcForum.Net.Bussiness
{
    public class StatisticRepo
    {
        public static Statistic Info(int min)
        {
            var l = MainDB.Instant.Statistical_Update(min).ExecuteTypedList<Statistic>();

            return l.Count > 0 ? l[0] : null;
        }

        public static Statistic MaxUserOnline()
        {
            var l = MainDB.Instant.Statistical_ListMaxUsersOnline().ExecuteTypedList<Statistic>();

            return l.Count > 0 ? l[0] : null;
        }

    }
}
